#ifndef SESSIONFILEEVENTMONITOR_H
#define SESSIONFILEEVENTMONITOR_H

#include <QObject>

class SessionFileEventMonitor : public QObject
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.ukui.SessionFileMonitor")
public:
    explicit SessionFileEventMonitor(QObject *parent = nullptr);

public slots:
    void setupService();
    void handleFileEventProtobuf(const QByteArray &buffer);

signals:
    void fileEvent(quint32 pid, QString command, quint32 eventType, QString srcUUID, quint64 srcId, QString srcPath, QString dstUUID, quint64 dstId, QString dstPath);

private:
    std::list<std::string> prefixBlackList;
};

#endif // SESSIONFILEEVENTMONITOR_H
